<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>导出PDF</title>
		<style>
			body {color: #333333; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif; font-size: 13px;line-height: 1.5; word-wrap: break-word;}
			h2{text-align:center;padding:0;margin:0; font-size:18px;height:39px;}
			.pdf-table{border:1px solid #333333; border-collapse: collapse;width:100%}
			.pdf-table td{border:1px solid #333333;border-collapse: collapse; padding:5px; line-height:1.5;}
			.pdf-td-gray{background-color:#f5f5f5; text-align:right; width:90px;}
		</style>
	</head>
	<body>
	<h2>发票开票审批单</h2>
	<table class="pdf-table">
		<tr>
			<td class="pdf-td-gray">开票金额</td>
			<td>{$detail.amount} 元</td>
			<td class="pdf-td-gray">开票类型</td>
			<td>
				{eq name="$detail.invoice_type" value="1"}增值税专用发票{/eq}
				{eq name="$detail.invoice_type" value="2"}普通发票{/eq}
				{eq name="$detail.invoice_type" value="3"}专业发票{/eq}
			</td>
			<td class="pdf-td-gray">开票主体</td>
			<td>{$detail.subject}</td>
		</tr>
		<tr>
			<td class="pdf-td-gray">抬头类型</td>
			<td>
				{eq name="$detail.types" value="1"}企业{/eq}
				{eq name="$detail.types" value="2"}个人{/eq}
			</td>
			<td class="pdf-td-gray">开票抬头</td>
			<td>{$detail.invoice_title}</td>
			<td class="pdf-td-gray">电话号码</td>
			<td>{$detail.invoice_phone}</td>
		</tr>
		{eq name="$detail.types" value="1"}
		<tr>
			<td class="pdf-td-gray">纳税人识别号</td>
			<td>{$detail.invoice_tax}</td>
			<td class="pdf-td-gray">开户行</td>
			<td>{$detail.invoice_bank}</td>
			<td class="pdf-td-gray">银行账号</td>
			<td>{$detail.invoice_account}</td>
		</tr>
		<tr>
			<td class="pdf-td-gray">银行营业网点</td>
			<td>{$detail.invoice_banking}</td>
			<td class="pdf-td-gray">地址</td>
			<td colspan="3">{$detail.invoice_address}</td>
		</tr>
		{/eq}
		{notempty name="$detail.contract_id"}
		<tr>
			<td class="pdf-td-gray">关联合同</td>
			<td colspan="5">{$detail.contract_name|default='-'}</td>
		</tr>
		{/notempty}
		{notempty name="$detail.project_id"}
		<tr>
			<td class="pdf-td-gray">关联项目</td>
			<td colspan="5">{$detail.project_name|default='-'}</td>
		</tr>
		{/notempty}
		{notempty name="$detail.remark"}
		<tr>
			<td class="pdf-td-gray">备注信息</td>
			<td colspan="5">{$detail.remark|default='-'}</td>
		</tr>
		{/notempty}
		{notempty name="$detail.file_array"}
		<tr>
			<td class="pdf-td-gray">相关附件</td>
			<td colspan="5">
				{volist name="$detail.file_array" id="vo"}
				<div>{$i}、{$vo.name}</div>
				{/volist}
			</td>
		</tr>
		{/notempty}
	</table>
	{include file="export/pdf_check" /}
	</body>
</html>